//
//  XOClubPublishImageCell.m
//  didigo
//
//  Created by JS_Coder on 2019/2/18.
//  Copyright © 2019 lifayu. All rights reserved.
//

#import "XOClubPublishImageCell.h"

@interface XOClubPublishImageCell()

@property (weak, nonatomic) IBOutlet UIImageView *publishImageView;

@end

@implementation XOClubPublishImageCell

- (void)setPublishImage:(UIImage *)publishImage {
    _publishImage = publishImage;
    [_publishImageView setImage:publishImage];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.publishImageView.contentMode = UIViewContentModeScaleAspectFill;
//    [_eliminateButton setHidden:YES];
}

- (IBAction)eliminateButtonAction:(UIButton *)sender {
    if (  [self.delegate respondsToSelector: @selector(clubPublish:deleteImage:)]) {
        [self.delegate clubPublish:self deleteImage:self.publishImage];
    }
}

@end
